<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>shouye</h1>
<p th:text="${msg}"></p>
<div th:if="${msgyz}!=1">
    <a th:href="@{/toLogin}"> 登录</a>
</div>
<div shiro:hasPermission="u:root">
    <a th:href="@{/user/addUser}">添加</a><br>
</div>

<div shiro:hasPermission="u:guest">
    <a th:href="@{/user/updateUser}">修改</a><br>
</div>


</body>
</html>